<?php
class Form_Simple extends Zend_Form
{
	public function init()
	{
		$this->setMethod('post');
		$this->setAction('');
		
		// create uploadify element
		$element = new MyZendX_Form_Element_Uploadify('upfile1');
		$element
			->setLabel('Upload some photos')
			->setRequired(true)
			->addValidator(new Zend_Validate_File_Extension('jpg,gif,png'))
			->setUploadifyOptions(array(
				'fileExt'	=> '*.jpg;*.gif;*.png',
				'fileDesc'	=> 'Image files'
			));
		$element->setIsArray(true);
		//$element->setUploadifyOptions(array('previewContainer'=>'#testpreview'));
		//$element->setMultiFile(2);
		$this->addElement($element);
		
		$this->addElement('submit', 'submit');
	}
}